#define _CRT_SECURE_NO_WARNINGS
int fac(int n)
{
	int f = 1;
	for (int i = 1; i <= n; i++)
		f = f * i;
	return f;
}